<?php
namespace app\common\lib;
use HTMLPurifier;
use HTMLPurifier_Config;
class Htmlp
{
    static public function htmlp($dirty_html)
    {
       $config = HTMLPurifier_Config::createDefault();
       $purifier = new HTMLPurifier($config);
       return $purifier->purify($dirty_html);
   }

}